﻿using System;
using System.IO;
using System.Windows;
using ReflectionStudio.Core;
using ReflectionStudio.Core.Events;

namespace INTEXReportSrv
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        private void TraceConfiguration()
        {
            try
            {
                //delete the old log file
                string logPath = Path.Combine(PathHelper.ApplicationPath, "INTEXReportSrv.exe.log");
                if (File.Exists(logPath))
                    File.Delete(logPath);             
            }
            catch (Exception ex)
            {
                Tracer.Error(ex.StackTrace, ex);
            }
        }
    }
    
}
